package com.filldream.fastboot.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;

import java.util.ArrayList;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 基础参数
 * </p>
 *
 * @author RickSun
 * @since 2022-04-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BaseParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 父级ID
     */
    private Long parentId;
    /**
     * 参数类型 1-系统 2-业务
     */
    private Integer paramType;
    /**
     * 参数编号
     */
    private String paramCode;
    /**
     * 参数key
     */
    private String paramKey;
    /**
     * 参数值
     */
    private String paramValue;
    /**
     * 备注
     */
    private String paramRemark;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 创建时间
     */
    private Date updateTime;

    private Long linkId;

    private String tagType;

    private Long createUser;

    private Long updateUser;

    @TableField(exist = false)
    private List<BaseParam> dataList = new ArrayList<>();


}
